package com.gouying.design.patterns.observer;

public class ObserverMain {

    public static void main(String[] args) {
        ZhuBo zhuBo = new LeijiaYin("雷佳音");
        zhuBo.addFans(new MmFans(zhuBo));
        zhuBo.addFans(new MmFans(zhuBo));
        zhuBo.addFans(new MmFans(zhuBo));

        zhuBo.notify("我要开始跳舞了");


    }
}
